package com.zsc.shixun.model.comment;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/21
 */
@Data
public class CommentCreateVO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文章标题")
    @NotNull(message = "必须填文章标题")
    @NotBlank(message = "文章标题不能为空")
    private String title;

    @ApiModelProperty(value = "评论具体内容")
    @NotNull(message = "必须填评论内容")
    @NotBlank(message = "评论内容不能为空")
    private String content;

    @ApiModelProperty(value = "评论用户的ip地址")
    private String ip;

    @ApiModelProperty(value = "评论状态")
    private String status;

    @ApiModelProperty(value = "评论用户用户名")
//    @NotNull(message = "必须填评论用户用户名")
//    @NotBlank(message = "评论用户用户名不能空")
    private String author;
    @ApiModelProperty(value = "用户id,关联b_user.id")
    private Long userId;

    @ApiModelProperty(value = "文章id，关联b_article.id")
    private Long articleId;


}
